home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr18 / anntpl.zip / ANNTPL.TPL
Text File  |  1993-05-26  |  19KB  |  575 lines

  1. ;***************************************************************
  2. ;* WinCis Commands Commands                                    *
  3. ;***************************************************************
  4. ;
  5. ;
  6. ;  GO           forum_name
  7. ;  RESET
  8. ;  KILLFILE     filename
  9. ;  KILLDIR      directory
  10. ;  MAKEDIR      directory
  11. ;  LIB          library_number
  12. ;
  13. ;  SCANMES
  14. ;  SCANTHR
  15. ;  SCANLIB
  16. ;  QSCNLIB
  17. ;
  18. ;  JOIN
  19. ;
  20. ;  DOWNLOAD     filename pathname
  21. ;
  22. ;  READSEC
  23. ;  READMES
  24. ;  READTHR
  25. ;  READANN
  26. ;  READMAIL
  27. ;
  28. ;  RECORD
  29. ;
  30. ;  DO           scriptfile
  31. ;
  32. ;  LOGOFF
  33. ;  OFF
  34. ;  QUIT
  35. ;
  36. ;  S
  37. ;  SE
  38. ;  SEND         text
  39. ;
  40. ;  U
  41. ;  W
  42. ;  WA
  43. ;  WAIT         text
  44. ;
  45. ;  P
  46. ;  PA
  47. ;  PAUSE        number_of_seconds
  48. ;
  49. ;  C
  50. ;  CA
  51. ;  CAPTURE      filename
  52. ;
  53. ;  PR
  54. ;  PRINT        ON, or OFF
  55. ;
  56. ;  LOG          text
  57. ;
  58. ;  EC
  59. ;  ECHO         text
  60. ;               ON, or OFF
  61. ;
  62. ;  EN
  63. ;  END
  64. ;
  65. ;  N
  66. ;  NA
  67. ;  NAME
  68. ;
  69. ;  US
  70. ;  USER
  71. ;  USERID
  72. ;  RET
  73. ;  RETURN
  74. ;
  75. ;  DEBUG        ON, or OFF
  76. ;***************************************************************
  77. ;* WinCis Variables                                            *
  78. ;***************************************************************
  79. ;       WinCis Variables are denoted by a single & characters &
  80. ;       these variables are replaced with string values at the
  81. ;       time WinCis executes the script.
  82. ;
  83. ; "&USERID"             CompuServe      UserID
  84. ; "&NAME"                               UserName
  85. ; "&PASSWORD"                           User Password
  86. ; "&GATEWAY"            Current Gateway
  87. ; "&FORUM"              Current Forum
  88. ;
  89. ;***************************************************************
  90. ;* WinCis Conditional Commands                                 *
  91. ;***************************************************************
  92. ;
  93. ;
  94. ;     '%', '?' or '@'   are prefix condition characters that can
  95. ;                       prefix any command in order to make the
  96. ;                       command conditional on the sucess of any
  97. ;                       prior command.
  98. ;
  99. ;       Each occurance of these prefix conditions denotes a
  100. ;       level of nesting that should be considered prior to
  101. ;       executing the command. Up to 10 levels of nesting
  102. ;       (or 10 prefix conditions) can be checked.
  103. ;
  104. ;       Basically processing proceeds as follows:
  105. :
  106. ;       For each Prefix condition:
  107. ;
  108. ;       For I = 0 to the Number-of-Prefix-Conditions
  109. ;               If The_Condition_At(I) = FALSE Then Skip This Command
  110. ;       Next
  111. ;
  112. ;       All Conditions are true So Perform the command and save the return code...
  113. ;
  114. ;       ReturnCode = Command()
  115. ;
  116. ;       If the command worked then ReturnCode = TRUE Else ReturnCode  = FALSE
  117. ;
  118. ;       Now set the next higher condition to the value of the ReturnCode so that
  119. ;       Other commands can be based on the success of the command just executed
  120. ;
  121. ;       Set The_Condition_At(Number-Of-Prefix-Conditions + 1) = ReturnCode
  122. ;
  123. ;
  124. ;       The Prefix Conditions Denote the following conditions
  125. ;
  126. ;
  127. ;      %   Defines a TRUE  condition at this error level
  128. ;      @   Defines a FALSE condition at this error level
  129. ;      ?   Defines a Don't Care Condition at this  error level
  130. ;
  131. ;
  132. ;       The following is an example of some of the concepts presented:
  133. ;
  134. ;
  135. ;       GO FORUM
  136. ;       ; This command will always be executed since there are no
  137. ;       ; prefix conditions.  If WinCis successfully enters the FORUM
  138. ;       ; then the condition at level 1 will be set to TRUE otherwise it
  139. ;       ; will be set to FALSE
  140. ;
  141. ;       %ECHO We entered the FORUM successfully
  142. ;       ; The ECHO command will execute only if the condition at level 1 is TRUE
  143. ;       ; The ECHO Command does not return a condition and therefore does not
  144. ;       ; affect the condition at level 2
  145. ;
  146. ;       %LIB 1
  147. ;       ; We will only go to library 1 if the condition at level 1 is TRUE
  148. ;       ; this of course depends on that success of the GO FORUM Command
  149. ;       ; If the command is executed it will set the condition at Level 2
  150. ;
  151. ;       %%SCANLIB KEY:PROGRAMS LIB:ALL
  152. ;       ; Scanning for programs will depend of the success of geting to the Library Prompt
  153. ;       ; Therefore this command depends of the sucess of both the GO FORUM and LIB 1
  154. ;       ; commands.  Here we test 2 levels of prefix conditions denoted by the fact that
  155. ;       ; there are 2 '%' characters prefixing the SCANLIB Command
  156. ;       ; If the command is executed it will set the condition at Level 3
  157. ;
  158. ;       %@ECHO Can't Enter library 1 of the FORUM
  159. ;       ; This command will only be executed if we successfully entered the forum
  160. ;       ; and were unable to enter the library.  Since the first prefix_condition is
  161. ;       ; an % the condition at level 1 must be true, this was set by the value returned
  162. ;       ; by the GO FORUM command. If GO FORUM was not successful the command would be skipped
  163. ;       ; The second prefix_condition @ indicates that the condition at level 2 must be FALSE
  164. ;       ; this condition was last established by the %LIB 1 command.
  165. ;       ; The ECHO Command does not return a condition and therefore does not
  166. ;       ; affect the condition at level 3
  167. ;
  168. ;       @ECHO Can't Enter the FORUM
  169. ;       ; This command will only be executed if the GO FORUM command was unsucessful
  170. ;       ; the @ indicates that the condition at level 1 must be FALSE.  This of course
  171. ;       ; was last set by the GO FORUM command.
  172. ;
  173. ;
  174. ;***************************************************************
  175. ;* Template Variables                                          *
  176. ;***************************************************************
  177. ;
  178. ;       Template Variables are denoted by the characters &&
  179. ;       these variables are replaced with string values at the
  180. ;       time WinCis generates the script.  Don't confuse template
  181. ;       variables with script variables.  Script variables are
  182. ;       evaluated when the script is executed by WinCis
  183. ;
  184. ;
  185. ;
  186. ; "&&USERID"        CompuServe UserID
  187. ; "&&USERNAME"                 UserName
  188. ; "&&PHONENUMBER"              PhoneNumber
  189. ; "&&LOGONSCRIPT"              LogonScript
  190. ;
  191. ; "&&GATEWAY"         Forum    Gateway
  192. ; "&&FORUMNAME"                Name
  193. ; "&&FORUMTITLE",              Title
  194. ; "&&CONTROLPATH"     Path For Control Files
  195. ; "&&DOWNLOADPATH"             Downloads
  196. ; "&&MESSAGEPATH"              Messages
  197. ; "&&SCRIPTPATH"               Scripts
  198. ;
  199. ; "&&LIBRARY"         Library  Number
  200. ; "&&DOWNLOADFILE"    Download FileName
  201. ; "&&DOWNLOADSIZE"             Filesize
  202. ; "&&DOWNLOADDATE"             Filedate
  203. ; "&&DOWNLOADCOUNT"            #DownLoads
  204. ; "&&DOWNLOADUPLD"             Uploaded by this CIS User
  205. ; "&&DOWNLOADTITLE"            Title Description of File
  206. ;
  207. ; "&&SCANFILE"        LibraryScan FileName
  208. ; "&&SCANAGE"                     Days old or age
  209. ; "&&SCANLIBS"                    Libraries to scan through
  210. ; "&&SCANKEYWORDS"                Keywords to look for
  211. ; "&&SCANTYPE"                    Short or long descriptions
  212. ; "&&SCANDESC"                    Description of this scan
  213. ;
  214. ; "&&READMSGSECTION"  ReadMessage Section Number
  215. ; "&&READMSGNUMBNER"              Thread or Message Number
  216. ;
  217. ; "&&VERSION"         WinCis Version Number
  218. ; "&&DATE"            Date script was created
  219. ; "&&TIME"            Time script was created
  220. ;
  221. ;
  222. ;
  223. ;
  224. [PROLOG]
  225. ;
  226. ; This script file was created on &&DATE at &&TIME by &&USERNAME.
  227. ;
  228. ;***********************************************************************
  229. ;       WinCIS &&VERSION
  230. ;       Copyright(C) 1992
  231. ;       Larry Lee (76670,1471)
  232. ;       16038 Augusta Drive
  233. ;       Chino Hills, Ca 91709
  234. ;***********************************************************************
  235. ;
  236. ;
  237. WAIT !
  238. SEND SET BRIEF YES^M
  239. WAIT !
  240. SEND SET PAGED NO^M
  241. WAIT !
  242. SEND SET BLANK YES^M
  243. WAIT !
  244. SEND SET WIDTH 80^M
  245. WAIT !
  246. ;
  247. [EPILOG]
  248. ;
  249. ;***********************************************************************
  250. ; All Done, Just Log off CompuServe
  251. ;***********************************************************************
  252. ;
  253. LOGOFF
  254.  
  255. [READ MAIL]
  256. ;
  257. ; Read Any Waiting CompuServe Mail
  258. ;
  259.  IF MAILWAITING
  260.   %ECHO Reading CompuServe Mail
  261.   %READMAIL &&SYSMESSAGEPATHMAIL.MSG
  262.     %%ECHO CompuServe Mail Read Complete!
  263.     %@ECHO Unable to Read your CompuServe Mail!
  264.  
  265.  
  266. [SEND MAIL]
  267. ;
  268. ; Send Any Waiting CompuServe Mail
  269. ;
  270.   IF FILEEXISTS &&SYSMESSAGEPATHMAIL.SND
  271.   %ECHO Sending CompuServe Mail
  272.   %SENDMAIL  &&SYSMESSAGEPATHMAIL.SND
  273.     %@ECHO Unable to Send your CompuServe Mail!
  274.     %%ECHO CompuServe Mail Send Complete!
  275.  
  276. [PROMPT MAIL OUTBOX]
  277. ;
  278. ; Ask what about Overwriting to the Mail OutBox
  279. ;
  280.      %%ASK OVERWRITE? &&SYSMESSAGEPATHMAIL.MOX  Do you want to save your outgoing Mail in &&SYSMESSAGEPATHMAIL.MOX
  281.      %%%ECHO Saving Your Out Going Mail to &&SYSMESSAGEPATHMAIL.MOX
  282.      %%%FILEMARK &&SYSMESSAGEPATHMAIL.MOX MAIL_SENT CIS:MAIL
  283.      %%%COPYFILE &&SYSMESSAGEPATHMAIL.SND &&SYSMESSAGEPATHMAIL.MOX
  284. ; At This point the Mail File Is No Longer Needed
  285.      %%KILLFILE &&SYSMESSAGEPATHMAIL.SND
  286.  
  287.  
  288. [APPEND MAIL OUTBOX]
  289. ;
  290. ; Append Queued Mail to the Mail OutBox
  291. ;
  292.    %%ECHO Appending your outgoing Mail to &&SYSMESSAGEPATHMAIL.MOX
  293.    %%FILEMARK &&SYSMESSAGEPATHMAIL.MOX MAIL_SENT &&FORUMNAME
  294.    %%COPYFILE &&SYSMESSAGEPATHMAIL.SND &&SYSMESSAGEPATHMAIL.MOX
  295. ; At This point the Mail File Is No Longer Needed
  296.    %%%KILLFILE &&SYSMESSAGEPATHMAIL.SND
  297.  
  298. [OVERWRITE MAIL OUTBOX]
  299. ;
  300. ; Overwrite Queued Mail to the &&FORUMNAME OutBox
  301. ;
  302.    %%ECHO Saving your outgoing Mail in &&SYSPATH&&FORUMNAME.MOX
  303.    %%KILLFILE &&SYSMESSAGEPATHMAIL.MOX
  304.    %%FILEMARK &&SYSMESSAGEPATHMAIL.MOX MAIL_SENT &&FORUMNAME
  305.    %%COPYFILE &&SYSMESSAGEPATHMAIL.SND &&SYSMESSAGEPATHMAIL.MOX
  306. ; At This point the Message File Is No Longer Needed
  307.    %%%KILLFILE &&SYSMESSAGEPATHMAIL.SND
  308.  
  309. [DELETE MAIL OUTBOX]
  310. ;
  311. ; Never Save Queued Mail to the Mail OutBox
  312. ;
  313.    %%ECHO Deleting outgoing Mail: &&SYSMESSAGEPATHMAIL.SND
  314. ; At This point the Mail File Is No Longer Needed
  315.    %%KILLFILE &&SYSMESSAGEPATHMAIL.SND
  316.  
  317. [GO FORUM]
  318. ;
  319. ;***********************************************************************
  320. ; Let's enter the &&FORUMNAME forum, &&FORUMTITLE
  321. ;***********************************************************************
  322. ECHO Going to &&FORUMNAME, &&FORUMTITLE
  323. FILEMARK &&MESSAGEPATH&&FORUMNAME.MSG Read_Annoucements &&FORUMNAME
  324. ; PUTFILE &&MESSAGEPATH&&FORUMNAME.MSG ^M^J#: 0 S-1/ Forum Annoucement^M^J    &DATE  &TIME
  325. PUTFILE &&MESSAGEPATH&&FORUMNAME.MSG ^M^J#: 0 S-1/ Forum Annoucement^M^J    01-Jan-93  &TIME
  326. PUTFILE &&MESSAGEPATH&&FORUMNAME.MSG ^M^JSb: News Flash^M^JFm: System^M^JTo:^M^J^M^J
  327. CAPTURE &&MESSAGEPATH&&FORUMNAME.MSG
  328. GO &&GATEWAY:&&FORUMNAME
  329. CAPTURE OFF
  330. ;
  331. ; Join Forum If Required!
  332. ;
  333.   %IF NOT JOINED
  334.     %%ECHO Attempting to Join &&FORUMNAME, &&FORUMTITLE
  335.     %%JOIN
  336.         %%%ECHO Successfully Joined &&FORUMNAME, &&FORUMTITLE
  337.     %%WAIT !
  338.         %%@ECHO Sorry, unable to Join &&FORUMNAME, &&FORUMTITLE
  339.         %%@SETERRORLEVEL 0 FALSE
  340. ;
  341. ; Set Session Defaults to Comamnd Mode for Forum Processing
  342. ;
  343.   %ECHO Setting Temporary Session Defaults in &&FORUMNAME, &&FORUMTITLE
  344.   %SEND OPT;INI;1;MOD;3;EDI EDIT;PAU N;REP LIST;TYPE N;SKIP N;CHAR;S^M
  345.   %WAIT New prompt:
  346.   %%SEND ^^G^M
  347.   %WAIT FORUM !
  348.     %@SETERRORLEVEL 0 FALSE
  349. ;
  350.   @ECHO Sorry, unable to enter the &&FORUMNAME Forum!
  351.   %ECHO Now in &&FORUMNAME, &&FORUMTITLE
  352. ;
  353. ; Check for Waiting Messages in the &&FORUMNAME Forum
  354. ;
  355.   %IF MESSAGESWAITING
  356.     %@ECHO No Messages Waiting to be Read On &&FORUMNAME, &&FORUMTITLE
  357.     %%ECHO Reading Waiting Messages of &&FORUMNAME, &&FORUMTITLE
  358.     %%SCAN &&MESSAGEPATH&&FORUMNAME.MSG READ WAIT
  359. ;
  360.  
  361. [GO LIB]
  362. ;
  363. ; Let's enter Library #&&LIBRARY of &&FORUMNAME
  364.   %LIB &&LIBRARY
  365. ;
  366. ; If something goes wrong... Inform the user and bypass this Library!
  367. ;   Otherwise all is well... Continue processing (downloads, catalogs, etc)
  368. ;
  369.     %@ECHO Sorry, unable to enter Library #&&LIBRARY of &&FORUMNAME, &&FORUMTITLE
  370.     %%ECHO Now In &&FORUMNAME, &&FORUMTITLE Libraries
  371. ;
  372.  
  373. [JOIN FORUM]
  374. ;
  375. ; Commented Out Since It's Done at GO FORUM Automatically
  376. ; Join The Forum
  377. ;
  378. ;  %IF NOT JOINED
  379. ;    %%ECHO Attempting to Join &&FORUMNAME, &&FORUMTITLE
  380. ;    %%JOIN
  381. ;       %%%ECHO Successfully Joined &&FORUMNAME, &&FORUMTITLE
  382. ;       %%@ECHO Sorry, unable to Join &&FORUMNAME Forum!
  383.  
  384. [SET FORUM DEFAULTS]
  385. ;
  386. ; Set Permanent Session Defaults to Comamnd Mode for Forum Processing
  387. ;
  388.   %ECHO Setting Permanent Session Defaults in &&FORUMNAME, &&FORUMTITLE
  389.   %SEND OPT;INI;1;MOD;3;EDI EDIT;PAU N;REP LIST;TYPE N;SKIP N;P^M
  390.   %WAIT FORUM !
  391.  
  392. [UPDATE FORUM SECTIONS]
  393. ;
  394. ; Read the Section Descriptions
  395. ;
  396.   %ECHO Updating &&FORUMNAME, &&FORUMTITLE Message And Library Descriptions
  397.   %KILLFILE &&CONTROLPATH&&FORUMNAME.SEC
  398.   %READ &&CONTROLPATH&&FORUMNAME.SEC NAM;1;2;M
  399.  
  400. [READ FORUM ANNOUNCEMENTS]
  401. ;
  402. ; Read the &&FORUMNAME Forum Announcements
  403. ;
  404.   %ECHO Reading &&FORUMNAME, &&FORUMTITLE Announcements
  405.   %READANN &&MESSAGEPATH&&FORUMNAME.MSG
  406.  
  407. [GO MESSAGES]
  408. ;
  409. ; Enter Message Area of the &&FORUMNAME Forum
  410. ;
  411.   %MESSAGES
  412. ;
  413. ; If something goes wrong... Inform the user and bypass the Message Area!
  414. ;   Otherwise all is well... Continue processing (READS, SCANS, ...)
  415. ;
  416.    %@ECHO Sorry, unable to enter Message Area of &&FORUMNAME, &&FORUMTITLE
  417.    %%ECHO Now In &&FORUMNAME, &&FORUMTITLE Message Area
  418. ;
  419.  
  420. [READ FORUM MESSAGES]
  421.     %%READ &&MESSAGEPATH&&FORUMNAME.MSG READ THR NUM:&&READMSGNUMBER
  422.  
  423. [RESET READ FORUM MESSAGES]
  424. ;
  425. ;  At this point no messages need to be read so Kill Then Read Msg Index
  426.     %%KILLFILE &&CONTROLPATH&&FORUMNAME.MXS
  427.  
  428. [READ WAITING FORUM MESSAGES]
  429. ;
  430. ; Commented Out Since It's Done at GO FORUM Automatically
  431. ; Check for Waiting Messages in the &&FORUMNAME Forum
  432. ;
  433. ;  %%IF MESSAGESWAITING
  434. ;    %%@ECHO No Messages Waiting to be Read On &&FORUMNAME, &&FORUMTITLE
  435. ;    %%%ECHO Reading Waiting Messages of &&FORUMNAME, &&FORUMTITLE
  436. ;    %%%SCAN &&MESSAGEPATH&&FORUMNAME.MSG READ WAIT
  437.  
  438. [READ NEW FORUM MESSAGES]
  439. ;
  440. ; Read New Messages in the &&FORUMNAME Forum
  441. ;
  442.     %%ECHO Reading New Messages of &&FORUMNAME, &&FORUMTITLE in Sections &&MSGSECTIONS
  443.     %%SCAN &&MESSAGEPATH&&FORUMNAME.MSG READ NEW &&MSGSECTIONS
  444.  
  445. [QUICKSCAN FORUM MESSAGE HEADERS]
  446. ;
  447. ; Scan For New Messages Threads in the &&FORUMNAME Forum and Overwrite existing File
  448. ;
  449.     %%ECHO Scanning For New Threads of &&FORUMNAME, &&FORUMTITLE in Sections &&MSGSECTIONS
  450.     %%KILLFILE &&CONTROLPATH&&FORUMNAME.MQS
  451.     %%SCAN &&CONTROLPATH&&FORUMNAME.MQS SCAN QUICK NEW &&MSGSECTIONS;T
  452.  
  453. [SEND FORUM MESSAGE]
  454. ;
  455. ; Sending Queued Messages and Replies to the &&FORUMNAME Forum
  456. ;
  457.     %%ECHO Sending Queued Messages and Replies to &&FORUMNAME, &&FORUMTITLE
  458.     %%SENDMSGS &&MESSAGEPATH&&FORUMNAME.SND
  459.  
  460. [PROMPT MESSAGE OUTBOX]
  461. ;
  462. ; Ask what to do about copying the OutGoing Messages
  463. ;
  464.    %%%ASK OVERWRITE? &&CONTROLPATH&&FORUMNAME.MOX  Do you want to save your outgoing &&FORUMNAME Messages in &&MESSAGEPATH&&FORUMNAME.MOX?
  465.    %%%%ECHO Saving your outgoing Messages to &&MESSAGEPATH&&FORUMNAME.MOX
  466.    %%%%FILEMARK  &&MESSAGEPATH&&FORUMNAME.MOX MESSAGES_SENT &&FORUMNAME
  467.    %%%%COPYFILE  &&MESSAGEPATH&&FORUMNAME.SND &&MESSAGEPATH&&FORUMNAME.MOX
  468. ; At This point the Message File Is No Longer Needed
  469.    %%%KILLFILE &&MESSAGEPATH&&FORUMNAME.SND
  470.  
  471.  
  472. [APPEND MESSAGE OUTBOX]
  473. ;
  474. ; Append Queued Messages and Replies to the &&FORUMNAME Forum OutBox
  475. ;
  476.    %%%ECHO Appending your outgoing &&FORUMNAME Messages to &&MESSAGEPATH&&FORUMNAME.MOX
  477.    %%%FILEMARK &&MESSAGEPATH&&FORUMNAME.MOX MESSAGES_SENT &&FORUMNAME
  478.    %%%COPYFILE &&MESSAGEPATH&&FORUMNAME.SND &&MESSAGEPATH&&FORUMNAME.MOX
  479. ; At This point the Message File Is No Longer Needed
  480.    %%%%KILLFILE &&MESSAGEPATH&&FORUMNAME.SND
  481. ;
  482. [OVERWRITE MESSAGE OUTBOX]
  483. ;
  484. ; Overwrite Queued Messages and Replies to the &&FORUMNAME Forum OutBox
  485. ;
  486.    %%%ECHO Saving your outgoing &&FORUMNAME Messages in &&MESSAGEPATH&&FORUMNAME.MOX
  487.    %%%%KILLFILE &&MESSAGEPATH&&FORUMNAME.MOX
  488.    %%%FILEMARK  &&MESSAGEPATH&&FORUMNAME.MOX MESSAGES_SENT &&FORUMNAME
  489.    %%%COPYFILE  &&MESSAGEPATH&&FORUMNAME.SND &&MESSAGEPATH&&FORUMNAME.MOX
  490. ; At This point the Message File Is No Longer Needed
  491.    %%%%KILLFILE &&MESSAGEPATH&&FORUMNAME.SND
  492.  
  493. [DELETE MESSAGE OUTBOX]
  494. ;
  495. ; Never Save Queued Messages to the &&FORUMNAME Forum OutBox
  496. ;
  497.    %%%ECHO Deleting outgoing Messages: &&MESSAGEPATH&&FORUMNAME.SND
  498. ; At This point the Mail File Is No Longer Needed
  499.    %%%KILLFILE &&MESSAGEPATH&&FORUMNAME.SND
  500.  
  501. [SET HIGH MESSAGE COUNTER]
  502. ;
  503. ; Set The High Message Counter to High Values
  504. ;
  505.     %%SEND HIGH;L^M
  506.     %%WAIT !
  507.  
  508. [OVERWRITE MESSAGES]
  509. ;
  510. ; Create New or Erase Existing &&FORUMNAME.MSG File if found to exist.
  511. ;
  512.     %%KILLFILE &&MESSAGEPATH&&FORUMNAME.MSG
  513.  
  514. [PROMPT CATALOG]
  515. ;
  516. ; Ask what to do if a Library Catalog exists for this Forum on Disk
  517. ;
  518.    %%IF FILEEXISTS &&CONTROLPATH&&FORUMNAME.LBR
  519.    %%%ASK OVERWRITE? &&CONTROLPATH&&FORUMNAME.LBR  Do you want to Overwrite or Append to the &&FORUMNAME Catalog File?^M^J&&CONTROLPATH&&FORUMNAME.LBR
  520.    %%%@SETERRORLEVEL 3 FALSE
  521.    %%@SETERRORLEVEL 3 TRUE
  522.  
  523. [APPEND CATALOG]
  524. ;
  525. ; Append to Existing Library Catalog
  526. ;
  527.    %%SETERRORLEVEL 3 TRUE
  528.  
  529. [OVERWRITE CATALOG]
  530. ;
  531. ; Overwrite the existing Catalog
  532. ;
  533.    %%KILLFILE &&CONTROLPATH&&FORUMNAME.LBR
  534.    %%SETERRORLEVEL 3 TRUE
  535.  
  536. [SHORT CATALOG SCAN]
  537. ;
  538. ; Requesting Download Information on &&SCANDESC
  539. ;
  540.     %%%ECHO Scanning Libraries of &&FORUMNAME, &&FORUMTITLE
  541.     %%%SCAN &&CONTROLPATH&&FORUMNAME.LBR LIST &&SCANFILE &&SCANLIBS &&SCANAGE &&SCANKEYWORDS
  542. ;
  543.  
  544. [FULL CATALOG SCAN]
  545. ;
  546. ; Requesting Download Information on &&SCANDESC
  547. ;
  548.     %%%ECHO Scanning Libraries of &&FORUMNAME, &&FORUMTITLE
  549.     %%%SCAN &&CONTROLPATH&&FORUMNAME.LBR SCAN &&SCANFILE DES &&SCANLIBS &&SCANAGE &&SCANKEYWORDS
  550. ;
  551.  
  552. [RESET SCAN CATALOG]
  553. ;
  554. ;  At this Point Library Scans are Complete so Kill Then Search Pattern Index
  555. ;
  556.     %%%KILLFILE &&CONTROLPATH&&FORUMNAME.LXC
  557.  
  558. [DOWNLOAD FILES]
  559.     %%DOWNLOAD &&DOWNLOADFILE &&DOWNLOADPATH &&DOWNLOADUPLD
  560. ;          Title: &&DOWNLOADTITLE
  561. ;          Library# &&LIBRARY, &&DOWNLOADSIZE Bytes, As of &&DOWNLOADDATE
  562. ;
  563.  
  564. [RESET DOWNLOAD FILES]
  565. ;
  566. ;  At this Point Downloads are Complete so Kill Then Download Tag List
  567. ;
  568.     %%KILLFILE &&CONTROLPATH&&FORUMNAME.LXR
  569.  
  570. [UPLOAD FILES]
  571. ;
  572. ; Sending Files
  573. ;                           <To be defined>
  574. 
  575.